-- GENERATED SPELL FOR [Rema] --


function spell0_21956(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_21956', 562, 1)
end

function spell1_21956(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21956', 15000, 1)
end

function spell2_21956(pUnit, Event) --@Threatening Growl,n/a--
pUnit:FullCastSpellOnTarget(5781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21956', 31000, 1)
end

function Sorts_21956(pUnit, Event)
local choix_sorts_21956 = math.random(0, 2)
if choix_sorts_21956 == 0 then
pUnit:RegisterEvent('spell0_21956', 1, 1)
end
if choix_sorts_21956 == 1 then
pUnit:RegisterEvent('spell1_21956', 1, 1)
end
if choix_sorts_21956 == 2 then
pUnit:RegisterEvent('spell2_21956', 1, 1)
end
end

function mob21956_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21956', math.random(1500, 3000), 1)
end

function mob21956_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21956_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21956_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21956, 1, 'mob21956_Action')
RegisterUnitEvent(21956, 2, 'mob21956_Leave')
RegisterUnitEvent(21956, 3, 'mob21956_Kill')
RegisterUnitEvent(21956, 4, 'mob21956_Die')
